$(function(){
    var fn = ABUS.Fn;
    if(__param__.childOrderStatus === '2'){
        fn.page_goto({
            url:"./yewuyuan_banli_stopTask.html",
            data:__param__
        })
    }
    $("#order_info").renderTemp({
        data:__param__
    });

    $(".bottom_button .bottom_left").on("touchend",function () {
        fn.page_goto({
            url:"./yewuyuan_banli_remarks.html",
            data:__param__
        })
    });
    $(".bottom_button .bottom_right").on("touchend",function () {
        fn.get({
            url:"/common/order/startChildOrder",
            data:{
                orderId:__param__.orderId,
                childOrderId:__param__.id
            },
            success:function (data) {
                if(data.result === 1){
                    fn.page_goto({
                        url:"./yewuyuan_banli_stopTask.html",
                        data:__param__
                    })
                }else{
                    fn.alert({
                        type:"error",
                        title:data.message
                    });
                }
            }
        })
    });

});